package com.example.demo.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDate;

import lombok.Data;

/**
 * 
 * @TableName punch_record
 */
@TableName(value ="punch_record")
@Data
public class PunchRecord implements Serializable {

//    private String companyCode; // 考勤机厂商编码 1
//    private List<PunchCardDatum> punchCardData;// 打卡数据数组 1
//    private String deviceSeq; // 考勤机序列号 1
//    private String deviceName; // 系统名称 1
//    private String deviceAlias; // 系统别名1
//    private int recordId; // 记录流水号自动递增
//    private int type; // 打卡类型
//    private String userAccount; // 员工账号
//    private String welinkId; // WeLink ID
//    private Date punchCardTime;// 打卡时间
//    private String tenantId; // 租户ID

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 打卡类型
     */
    @TableField(value = "type")
    private int type;

    /**
     * 考勤机厂商编码
     */
    @TableField(value = "company_code")
    private String companyCode;

    /**
     * 考勤机序列号
     */
    @TableField(value = "device_seq")
    private String deviceSeq;

    /**
     * 系统名称
     */
    @TableField(value = "device_name")
    private String deviceName;

    /**
     * 系统别名
     */
    @TableField(value = "device_alias")
    private String deviceAlias;

    /**
     * 记录流水号自动递增
     */
    @TableField(value = "record_id")
    private String recordId;

    /**
     * 
     */
    @TableField(value = "punch_recordcol")
    private String punchRecordcol;

    /**
     * 员工账号
     */
    @TableField(value = "user_account")
    private String userAccount;

    /**
     * WeLink ID
     */
    @TableField(value = "welink_id")
    private String welinkId;

    /**
     * 打卡时间
     */
    @TableField(value = "punch_card_time")
    private LocalDate punchCardTime;

    /**
     * 租户ID
     */
    @TableField(value = "tenant_id")
    private String tenantId;



    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

}